package com.coderlin.mapper;

import com.coderlin.entities.Salary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <Description> <br>
 *
 * @author Coder_Lin<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2021/07/28 9:38 <br>
 * @see com.coderlin.mapper <br>
 */
public interface SalaryMapper {

    /**
     * 列出员工工作以来获取的所有工资
     * @return
     */
    List<Salary> listSalary();

    /**
     * 根据传入的时间查询区间内工人的工资
     * @param workerName
     * @param timeStart
     * @param timeEnd
     * @return
     */
    List<Salary> calcSalary(@Param("workerName")String workerName,@Param("timeStart") String timeStart, @Param("timeEnd") String timeEnd);
}
